package com.zjc.common;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 周佳成
 */
public class TimeUtils {
	 public static Date getSqlDate(Date date) throws ParseException {
		 SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
		 String temptime = simpleDateFormat.format(date.getTime());
		 SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyy-MM-dd");
		 return simpleDateFormat1.parse(temptime);
	 }
}
